Skip to content

Add edge case test for whitespace-only input#174

Open
BlocksecPHD wants to merge 1 commit intoun33k:masterfrom
BlocksecPHD:whitespace-only-input-test
Open

Add edge case test for whitespace-only input#174
BlocksecPHD wants to merge 1 commit intoun33k:masterfrom
BlocksecPHD:whitespace-only-input-test

Conversation

@BlocksecPHD
Copy link
Copy Markdown

This PR adds a test case to verify that correctly returns an empty string when the input contains only whitespace (spaces, tabs, newlines) or is empty.

Test cases covered:

  • Spaces only ()
  • Tabs and newlines ()
  • Mixed whitespace characters ()
  • Empty string ()

All 83 existing tests pass. No breaking changes introduced.

This addresses issue #169.

This test verifies that slugify correctly returns an empty string
when the input contains only whitespace (spaces, tabs, newlines).

Test cases include:
- Spaces only
- Tabs and newlines
- Mixed whitespace characters
- Empty string

No breaking changes introduced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant